package com.bwie.service;

import com.bwie.bean.Accountant;
import com.bwie.bean.Type;
import com.bwie.dao.AccountantDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class AccountantServiceImpl implements AccountantService {

    @Autowired
    AccountantDao accountantDao;

    @Override
    public void add(Accountant accountant) {
        accountantDao.add(accountant);
    }

    @Override
    public int addAcc(Accountant accountant) {
        return accountantDao.addAcc(accountant);
    }

    @Override
    public List<Type> listType() {
        return accountantDao.listType();
    }

    @Override
    public List<Accountant> list(Map map) {
        return accountantDao.list(map);
    }

    @Override
    public int delAll(String aid) {
        return accountantDao.delAll(aid);
    }
}
